package com.cater.sys.service.impl;

import com.cater.common.PageResult;
import com.cater.query.CommonQuery;
import com.cater.sys.dao.FilestorageDao;
import com.cater.sys.entity.Filestorage;
import com.cater.sys.service.FilestorageService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @author 作者: yy
 * @date 创建时间：2017年1月9日 上午9:09:56
 * @version 1.0
 */
@Service
public class FilestorageServiceImpl implements FilestorageService {

	@Autowired
	FilestorageDao dao;

	@Override
	public PageResult<Filestorage> findPageResult(CommonQuery query) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int save(Filestorage t) {
		
		return dao.save(t);
	}

	@Override
	public void update(Filestorage t) {
		dao.update(t);
	}

	@Override
	public void delete(String id) {
		dao.delete(Integer.valueOf(id));
	}


	@Override
	public void delete(Long id) {
		dao.delete(id);
	}

	@Override
	public Filestorage getById(String id) {
		return dao.getById(Integer.valueOf(id));
	}

	@Override
	public List<Filestorage> getAllCommon(CommonQuery query) {
		return null;
	}

	@Override
	public List<Filestorage> getAllByattributeId(String id, String typeid) {
		return dao.getAllByattributeId(id, typeid);
	}

	@Override
	public List<Filestorage> getAllByattributeId(Long id, Integer typeid) {
		return dao.getAllByattributeId(id, typeid);
	}

	@Override
	public List<Filestorage> getAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Filestorage> getAllBytype(Integer id, Integer typeid, Integer type) {
		// TODO Auto-generated method stub
		return dao.getAllBytype(id, typeid, type);
	}

	@Override
	public String saves(Filestorage t) {
		// TODO Auto-generated method stub
		return null;
	}

}